package lab02.test15;

public class Graduate implements StudentInterface,TeacherInterface{
    private String name;
    private String sex;
    private int age;

    public void Ifloan(){
        if (getPay()-getFee()<=2000){
            System.out.println("You need a loan!");
        }else System.out.println("You incom isenough!");
    }

    @Override
    public void setFee(){
    }

    @Override
    public double getFee() {
        return 6000;
    }

    @Override
    public void setPay() {
    }

    @Override
    public double getPay() {
        return 3000;
    }

    Graduate(){}
    Graduate(String name,String sex,int age){
        this.name = name;
        this.sex = sex;
        this.age = age;

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

}
